Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

is-absolute

Package Overview
Dependencies
Maintainers
2
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-absolute

Polyfill for node.js `path.isAbolute`. Returns true if a file path is absolute.

  • 0.2.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6.3M
decreased by-0.69%
Maintainers
2
Weekly downloads
 
Created

What is is-absolute?

The is-absolute npm package is a utility that helps determine if a given file path is an absolute path. This can be particularly useful in file system operations where the distinction between absolute and relative paths is important.

What are is-absolute's main functionalities?

Check if a path is absolute

This feature allows you to check if a given path is absolute. An absolute path is one that starts from the root directory, as opposed to a relative path which is relative to the current working directory.

const isAbsolute = require('is-absolute');

console.log(isAbsolute('/home/user')); // true
console.log(isAbsolute('home/user')); // false

Other packages similar to is-absolute

Keywords

FAQs

Package last updated on 16 Oct 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc